<div class="global-title">View Invoices</div>
<br class="clear" />
<p>Order Status: <?php echo $carts['0']['Order']['payment_status'];?></p>
<p>Shipping Status: <?php echo $carts['0']['Order']['shipping_status'];?></p>
<p>Invoice #: <?php echo $carts['0']['Order']['id'];?></p>
<p>Transaction #: <?php echo $carts['0']['Order']['transaction_id'];?></p>
<p>Order Date: <?php echo $carts['0']['Order']['add_date'];?></p>
<p>Seller: <?php if(isset($carts['0']['Product']['User']['first_name']))echo $carts['0']['Product']['User']['first_name']." "; if(isset($carts['0']['Product']['User']['last_name']))echo $carts['0']['Product']['User']['last_name'];?></p>
<br /><br />
<br class="clear" />
<table width="100%" align="left">
	<!--tr><td align="center"><p>Billing Address</p></td><td align="center"><p>Shipping Address</p></td></tr>
	<tr><td align="left" style="vertical-align:middle;">
		<table width="220">
			<tr><td align="right" width="100">First Name: </td><td align="left" width="120"><?php echo $orders['Order']['billing_first_name'];?></td></tr>
			<tr><td align="right">Last Name: </td><td align="left"><?php echo $orders['Order']['billing_last_name'];?></td></tr>
			<tr><td align="right">Address1: </td><td align="left"><?php echo $orders['Order']['billing_address1'];?></td></tr>
			<tr><td align="right">Address2: </td><td align="left"><?php echo $orders['Order']['billing_address2'];?></td></tr>			
			<tr><td align="right">Country: </td><td align="left"><?php echo $orders['Order']['billing_country'];?></td></tr>
			<tr><td align="right">City: </td><td align="left"><?php echo $orders['Order']['billing_city'];?></td></tr>
			<tr><td align="right">State: </td><td align="left"><?php echo $orders['Order']['billing_state'];?></td></tr>
			<tr><td align="right">Zip Code: </td><td align="left"><?php echo $orders['Order']['billing_zip'];?></td></tr>			
		</table>
	</td>
	<td align="left" style="vertical-align:middle;">
		<table width="220">
			<tr><td align="right">First Name: </td><td align="left"><?php echo $orders['Order']['billing_first_name'];?></td></tr>
			<tr><td align="right">Last Name: </td><td align="left"><?php echo $orders['Order']['billing_last_name'];?></td></tr>
			<tr><td align="right">Address1: </td><td align="left"><?php echo $orders['Order']['billing_address1'];?></td></tr>
			<tr><td align="right">Address2: </td><td align="left"><?php echo $orders['Order']['billing_address2'];?></td></tr>			
			<tr><td align="right">Country: </td><td align="left"><?php echo $orders['Order']['billing_country'];?></td></tr>
			<tr><td align="right">City: </td><td align="left"><?php echo $orders['Order']['billing_city'];?></td></tr>
			<tr><td align="right">State: </td><td align="left"><?php echo $orders['Order']['billing_state'];?></td></tr>
			<tr><td align="right">Zip Code: </td><td align="left"><?php echo $orders['Order']['billing_zip'];?></td></tr>			
		</table>
	</td></tr-->
	<tr><td colspan="2" height="20">&nbsp;</td></tr>
	<tr><td colspan="2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="check-out-table">
			<tr>				
				<th bgcolor="#ccc">Item #</th><th bgcolor="#ccc">Title</th><th bgcolor="#ccc">Qty</th><th bgcolor="#ccc">Total Price</th><th bgcolor="#ccc">Carrier</th>
			</tr>				
			<tr>
				<td style="vertical-align: middle;">
					<?php echo $carts['0']['Product']['id'];?>
				</td>
				<td style="vertical-align: middle;"><?php echo $carts['0']['Product']['products_title'];?></td>
				<td style="vertical-align: middle;"><?php echo $carts['0']['Cart']['quantity'];?></td>
				<td style="vertical-align: middle;">US $<?php echo ($carts['0']['Cart']['product_cost']*$carts['0']['Cart']['quantity']);?></td>
				<td style="vertical-align: middle;"><?php echo $carts['0']['Shipping']['shipping_method'];?></td>				
			</tr>	
		</table>
	</td></tr>
</table>